package com.github.wxiaoqi.security.auth.util.user;

import java.io.Serializable;

public class JwtAuthenticationRequest implements Serializable {

	private static final long serialVersionUID = -8445943548965154778L;

	private String username;
	private String password;
	private String platformId;
	private String saltKey;
	//图形验证码
	private String identifyingCode;
	/**
	 * 登录类型
	 * 空或01：用户名密码登录
	 * 02：手机号登录
	 */
	private String loginType;
	/**
	 * 登录手机号
	 */
	private String phone;
	/**
	 * 手机号验证码
	 */
	private String code;
	
	
	private String appId;// 加密后的平台编号
	private String key;//   appKey值
	public JwtAuthenticationRequest(String username, String password, String platformId, String saltKey,String identifyingCode) {
		this.username = username;
		this.password = password;
		this.platformId = platformId;
		this.saltKey = saltKey;
		this.identifyingCode = identifyingCode;
	}
	public JwtAuthenticationRequest(String username, String password, String platformId, String saltKey,String identifyingCode,String appId,String key) {
		this.username = username;
		this.password = password;
		this.platformId = platformId;
		this.saltKey = saltKey;
		this.identifyingCode = identifyingCode;
		this.appId = appId;
		this.key = key;
	}
	
	public JwtAuthenticationRequest() {
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPlatformId() {
		return platformId;
	}

	public void setPlatformId(String platformId) {
		this.platformId = platformId;
	}

	public String getSaltKey() {
		return saltKey;
	}

	public void setSaltKey(String saltKey) {
		this.saltKey = saltKey;
	}

	public String getIdentifyingCode() {
		return identifyingCode;
	}

	public void setIdentifyingCode(String identifyingCode) {
		this.identifyingCode = identifyingCode;
	}
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getLoginType() {
		return loginType;
	}
	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
}
